﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Master/Admin.Master" AutoEventWireup="true" CodeBehind="UserSet.aspx.cs" Inherits="Besture.UI.Admin.User.UserSet" %>

<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.2" Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
    <div class="mainbox">
        <div>
            <div>
                <table width="98%" cellspacing="0" cellpadding="0" class="table_form">
                    <tr>
                        <th>
                            登录名：
                        </th>
                        <td>
                            <img src="/admin/images/indispensable.gif" align="absMiddle" /><asp:TextBox ID="txtName" runat="server" MaxLength="30" class="input-text required" Width="400px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            登录密码：
                        </th>
                        <td>
                            <img src="/admin/images/indispensable.gif" align="absMiddle" /><asp:TextBox ID="txtPassword" runat="server" MaxLength="200" class="input-text required"
                                minlength="6" TextMode="Password" Width="400px" ClientIDMode="Static"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            确认登录密码：
                        </th>
                        <td>
                            <img src="/admin/images/indispensable.gif" align="absMiddle" /><asp:TextBox ID="txtPasswordAgain" runat="server" MaxLength="200" class="input-text required"
                                minlength="6" equalTo='#txtPassword' TextMode="Password" Width="400px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            角色：
                        </th>
                        <td>
                            <img src="/admin/images/dispensable.png" align="absMiddle" />
                            <asp:Repeater runat="server" ID="rpRoles">
                                <ItemTemplate>
                                    <dx:ASPxCheckBox runat="server" Text='<%#Eval("Name") %>' ID="cbRoles" Checked='<%#HasRoles(Eval("ID").ToString())%>'>
                                    </dx:ASPxCheckBox>
                                    <asp:Label ID="lbRolesID" runat="server" Text='<%#Eval("ID")%>' Visible="false"></asp:Label>
                                </ItemTemplate>
                            </asp:Repeater>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            属性：
                        </th>
                        <td>
                            <img src="/admin/images/dispensable.png" align="absMiddle" />
                            <dx:ASPxCheckBox runat="server" Text="冻洁" ID="acbIsFreeze">
                            </dx:ASPxCheckBox>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="buttonDiv">
                <asp:Button runat="server" ID="btnSubmit" CssClass="button" Text="保存" OnClick="btnSubmit_Click" />
                <input type="button" class="button" value="取消" onclick="location.href='UserList.aspx'" />
            </div>
        </div>
    </div>
</asp:Content>
